<?php
$id = isset($_GET['id'])?(int)$_GET['id']:0;
$lanmu = isset($_GET['lanmu'])?(int)$_GET['lanmu']:0;
$c_id = isset($_GET['c_id'])?(int)$_GET['c_id']:0;

$where_sql=" where lc_id = {$id} ";
if($lanmu){
	$where_sql.=" and lanmu={$lanmu}";
	}
if($c_id){
	$where_sql.=" and c_id ={$c_id}";
}
$sql = "select * from ".lc()."_news ".$where_sql;
$rs = mysql_query($sql);
if($rs){
	$rows = mysql_fetch_assoc($rs);
	$c_id=$rows['c_id'];
	$lanmu= get_news_lanmu_by_lc_id($id);
	}
$now_url='http://'.$_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];//获取当前的网站
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $rows['lc_title'] ?> - <?php echo top_keys(7)?></title>
<meta name="description" content="<?php echo top_keys(9)?>">
<meta name="keywords" content="<?php echo top_keys(8)?>">
<link href="<?php echo TPL_URL?>style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="body"><?php require('head.php')?>
  <div id="middle">
    <div id="left">
      <div id="type">
        <div class="title">
          <h1>栏目分类</h1>
        </div>
        <ul>
          <?php echo get_news_type_ul($lanmu) ?>
        </ul>
      </div>
      <!-- type --></div>
    <!-- left -->
    <div id="right">
      <div class="title">
        <h1><?php echo get_lanmu_name($lanmu) ?></h1>
        <h3><a href="index.php">首页</a> > <?php echo get_news_type_title_by_lc_id($id)?></h3>
      </div>
      <div id="news_con">
         <h1 class="h1"><?php echo $rows['lc_title'] ?></h1>
        <h2 class="h2">添加时间：<?php echo date("Y-m-d",strtotime($rows['lc_datetime']))?> 点击量：<?php echo $rows['lc_hits']?></h2>
        <?php echo $rows['lc_content']?><br>
        <br>
        &nbsp;&nbsp;&nbsp;亲链接二维码！你懂滴！<br>
        <img src="http://qr.liantu.com/api.php?text='<?php echo $now_url?>'&w=120&m=10"><br>
         上一篇：<?php echo get_news_title_last($id)?> <br>
        下一篇：<?php echo get_news_title_next($id)?>
        <div class="bshare-custom"><a class="bshare-qzone" title="分享到QQ空间"></a><a
	class="bshare-sinaminiblog" title="分享到新浪微博"></a><a class="bshare-renren"
	title="分享到人人网"></a><a class="bshare-qqmb" title="分享到腾讯微博"></a><a
	class="bshare-neteasemb" title="分享到网易微博"></a><a
	class="bshare-more bshare-more-icon more-style-addthis" title="更多平台"></a><span
	class="BSHARE_COUNT bshare-share-count">0</span></div>
        <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script> 
        <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script> 
      </div>
    </div>
    <!-- right -->
    <div class="clear"></div>
  </div>
  <?php require('bot.php') ?></div>
<!-- body -->
</body>
</html>
